"""NoneBot2 消息计数器插件"""

__version__ = "1.0.0"
__plugin_name__ = "消息计数器"
__plugin_description__ = "统计群聊消息数量，提供排行榜功能"
__plugin_usage__ = """
使用方法：
- /查询 [用户] - 查询指定用户的发言次数
- /排行榜 [数量] - 查看发言排行榜
- /群排行榜 [数量] - 查看群聊排行榜
"""

from nonebot import require
from nonebot.plugin import PluginMetadata

require("nonebot_plugin_apscheduler")
require("nonebot_plugin_sqlalchemy")

__plugin_meta__ = PluginMetadata(
    name=__plugin_name__,
    description=__plugin_description__,
    usage=__plugin_usage__,
    type="application",
    homepage="https://github.com/your-repo/nonebot-plugin-message-counter",
    supported_adapters={"~onebot.v11"},
    extra={
        "version": __version__,
        "author": "Your Name",
    },
)

from . import commands, database, scheduler, handlers

__all__ = ["__version__", "__plugin_name__", "__plugin_description__", "__plugin_usage__"]